package com.alibaba.demo.service.service;

import com.alibaba.cola.dto.Response;
import com.alibaba.demo.api.IotServiceI;
import com.alibaba.demo.dto.command.IotServiceAddCmd;
import com.alibaba.demo.service.executor.command.IotServiceAddCmdExe;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author Administrator
 * @date 2024/4/28 09:57
 * @description
 */
@Service
public class IotServiceImpl implements IotServiceI {
    @Resource
    private IotServiceAddCmdExe iotServiceAddCmdExe;
    @Override
    public Response addService(IotServiceAddCmd cmd) {
        return iotServiceAddCmdExe.execute(cmd);
    }
}
